Capacitive touch device and gesture recognition method thereof, chip and storage medium

ABSTRACT

A capacitive touch device and a gesture recognition method thereof, a chip and a storage medium are provided. In some embodiments, the gesture recognition method includes: sampling a capacitance of a capacitive sensor in the capacitive touch device to acquire a capacitance sampling value corresponding to a current sampling frame; determining a first capacitance value of an interference capacitance caused by a liquid on the capacitive sensor according to the capacitance sampling value and reference information corresponding to the current sampling frame; determining a touch state of the capacitive sensor represented by the current sampling frame according to the capacitance sampling value and the first capacitance value of the interference capacitance corresponding to the current sampling frame; and recognizing a gesture of a user on the capacitive touch device according to timing information of the touch state represented by the current sampling frame and a historical touch state of the capacitive sensor.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of PCT Patent Application No.PCT/CN2020/089433, filed May 9, 2020, which claims priority to Chinesepatent application No. 202010247812.1, filed Mar. 31, 2020, each ofwhich is incorporated by reference herein in its entirety.

TECHNICAL FIELD

Embodiments of the present disclosure relate to the field of gesturerecognition technology, in particular to a capacitive touch device and agesture recognition method thereof, a chip and a storage medium.

BACKGROUND

At present, smart wearable devices have entered an explosive period,especially wireless headsets. The functional modules of the wirelessheadsets are roughly divided into a Bluetooth transmission module, anaudio processing module, a power management module, a wear detectionmodule, a gesture recognition module and so on, among which the gesturerecognition module is an indispensable part of an excellent wirelessheadset. In related technologies, there are three mainstream solutionsfor the gesture recognition module.

1. An accelerometer-sensor (G-sensor) solution, which relies on anacceleration timing detected by the G-sensor to recognize the user'sgestures such as click, double click, triple click and the like to theheadsets.

2. A pressure sensing solution, which relies on detecting a pressureapplied to a headset shell to recognize the user's gestures such asclick, double click, triple click, slide, long press and the like.

3. A capacitance sensing solution, which relies on detecting an amountof change in capacitance to recognize the user's various gestures to theheadsets.

However, the applicant found that there are at least the followingproblems in the related technologies: In the first solution, on the onehand, gestures such as slide and long press may not be recognized; onthe other hand, violent shaking of the head may lead to an accidentaltouching of the click gesture, and the accuracy of gesture recognitionis relatively low. In the second solution, the assembly process andstructure space requirements are relatively high, resulting in arelatively high comprehensive cost. In the third solution, if theheadset is stained with water or sweat, the gesture recognitionperformance is relatively poor, and the recognition accuracy may beaffected. For example, a normal click gesture may be mistaken for atouch of the capacitive sensor maintained for a long time because of thewater or sweat remaining on the headset, thus being mistaken for a longpress gesture. In a case that the user's hand does not touch theheadset, but the headset is stained with water or sweat, it may bemistaken for the user touching the headset, thus being mistakenlyrecognized as a click gesture.

SUMMARY

Some embodiments of this present disclosure aim to provide a capacitivetouch device, a gesture recognition method thereof, a chip and a storagemedium, which are beneficial to improving the accuracy of gesturerecognition.

To solve the above technical problems, some embodiments of the presentdisclosure provide a gesture recognition method of a capacitive touchdevice, which includes: sampling a capacitance of a capacitive sensor inthe capacitive touch device to acquire a capacitance sampling valuecorresponding to a current sampling frame of the capacitive sensor;determining a first capacitance value of an interference capacitancecaused by a liquid on the capacitive sensor according to the capacitancesampling value and reference information corresponding to the currentsampling frame; where when the current sampling frame is a firstsampling frame, the reference information is initialization information;when the current sampling frame is not the first sampling frame, thereference information is characteristic information of a previoussampling frame of the current sampling frame; determining a touch stateof the capacitive sensor represented by the current sampling frameaccording to the capacitance sampling value and the first capacitancevalue of the interference capacitance corresponding to the currentsampling frame; and recognizing a gesture of a user on the capacitivetouch device according to timing information of the touch state of thecapacitive sensor represented by the current sampling frame and ahistorical touch state of the capacitive sensor.

Some embodiments of the present disclosure further provide a chip, whichincludes at least one processor; and a memory communicatively connectedto the at least one processor; where, the memory stores an instructionexecutable by the at least one processor, and the instruction isexecuted by the at least one processor, so that the at least oneprocessor may execute the above-described gesture recognition method ofthe capacitive touch device.

Some embodiments of the present disclosure further provide a capacitivetouch device, which includes the above-described chip.

Some embodiments of the present disclosure further provide acomputer-readable storage medium storing a computer program, where thecomputer program, when executed by a processor, implements theabove-described gesture recognition method of the capacitive touchdevice.

According to some embodiments of the present disclosure, the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor is determined by combining the capacitancesampling value and the reference information corresponding to thecurrent sampling frame, that is, considering that the liquid contactingthe capacitive sensor in the capacitive touch device may cause acapacitance change. The touch state of the capacitive sensor representedby the current sampling frame is determined according to the capacitancesampling value and the first capacitance value of the interferencecapacitance corresponding to the current sampling frame. That is, whendetermining the touch state of the capacitive sensor represented by thecurrent sampling frame, the capacitance change which may be caused bythe liquid contacting the capacitive sensor in the capacitive touchdevice is considered at the same time, which is beneficial toeliminating the capacitance interference which may be caused when theliquid contacts the capacitive sensor in the capacitive touch devicewhen determining the touch state, thus improving the accuracy of thedetermined touch state. Since the accuracy of the determined touch stateis improved, it is beneficial to improving the accuracy of therecognized gesture type when a gesture type is further recognized basedon the determined touch state.

Further, the reference information includes a referenced touch state anda referenced first capacitance value. When the current sampling frame isthe first sampling frame, the initialization information includes aninitialized touch state and an initialized first capacitance value;where the referenced touch state is the initialized touch state, and thereferenced first capacitance value is the initialized first capacitancevalue; and when the current sampling frame is not the first samplingframe, the characteristic information of the previous sampling frame ofthe current sampling frame includes a touch state of the capacitivesensor represented by the previous sampling frame of the currentsampling frame and the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor in theprevious sampling frame of the current sampling frame; where thereferenced touch state is the touch state of the capacitive sensorrepresented by the previous sampling frame, and the referenced firstcapacitance value is the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor in theprevious sampling frame. The specific content of the referenceinformation in two cases of the current sampling frame being the firstsampling frame or not the first sampling frame is provided, whichfacilitates to accurately determine the first capacitance valuecorresponding to the current sampling frame caused by the liquid on thecapacitive sensor in different cases.

Further, determining the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor according tothe capacitance sampling value and the reference informationcorresponding to the current sampling frame includes: determining asecond capacitance value of the interference capacitance caused by theliquid on the capacitive sensor according to the capacitance samplingvalue corresponding to the current sampling frame when the referencedtouch state is a touch; and determining the first capacitance value ofthe interference capacitance caused by the liquid on the capacitivesensor according to the second capacitance value and the referencedfirst capacitance value. An implementation method of determining thefirst capacitance value of the interference capacitance caused by theliquid on the capacitive sensor when the referenced touch state is thetouch state is provided, which facilitates to accurately determine thefirst capacitance value of the interference capacitance caused by theliquid on the capacitive sensor according to the second capacitancevalue and the referenced first capacitance value when the referencedtouch state is the touch.

Further, determining the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor according tothe capacitance sampling value and the reference informationcorresponding to the current sampling frame includes: determining thefirst capacitance value of the interference capacitance caused by theliquid on the capacitive sensor according to the capacitance samplingvalue and the referenced first capacitance value corresponding to thecurrent sampling frame when the referenced touch state is a no touchstate. An implementation method of determining the first capacitancevalue of the interference capacitance caused by the liquid on thecapacitive sensor when the referenced touch state is the no touch stateis provided, which facilitates to determine the first capacitance valueof the interference capacitance directly according to the capacitancesampling value and the referenced first capacitance value when thereferenced touch state is the no touch state.

Further, determining the touch state of the capacitive sensorrepresented by the current sampling frame according to the capacitancesampling value and the first capacitance value of the interferencecapacitance corresponding to the current sampling frame includes: takinga difference between the capacitance sampling value corresponding to thecurrent sampling frame and a base capacitance value of the capacitivesensor as a capacitance detection value; where the base capacitancevalue represents a capacitance value of the capacitive sensor acquiredby sampling under the condition of no hand touch and no liquid contact;determining a hand capacitance value according to a difference betweenthe capacitance detection value and the first capacitance value of theinterference capacitance; where the hand capacitance value is configuredto represent a capacitance change value caused by a hand on thecapacitive sensor; and determining the touch state of the capacitivesensor represented by the current sampling frame according to the handcapacitance value. Through a determined hand capacitance value, it isbeneficial to accurately acquire an amount of a capacitance changecaused by hand touching the capacitive sensor in the capacitive touchdevice except the first capacitance value of the interferencecapacitance caused by the liquid, so that the touch state of thecapacitive sensor represented by the current sampling frame may beaccurately determined based on the acquired hand capacitance value.

BRIEF DESCRIPTION OF THE DRAWINGS

One or more embodiments are described as examples with reference to thecorresponding figures in the accompanying drawings, and the examples donot constitute a limitation to the embodiments. Elements with the samereference numerals in the accompanying drawings represent similarelements. The figures in the accompanying drawings do not constitute aproportion limitation unless otherwise stated.

FIG. 1 is a schematic diagram of a wireless headset according to a firstembodiment of the present disclosure.

FIG. 2 is a flowchart of a gesture recognition method of a capacitivetouch device according to the first embodiment of the presentdisclosure.

FIG. 3 is a flowchart of sub-steps of step 102 in the first embodimentof the present disclosure.

FIG. 4 is a schematic diagram of a relationship between a capacitancedetection value of a capacitive sensor and a touch state according tothe first embodiment of this present disclosure.

FIG. 5 is a flowchart of sub-steps of step 103 according to an examplein a second embodiment of the present disclosure.

FIG. 6 is a flowchart of sub-steps of step 103 according to anotherexample in the second embodiment of the present disclosure.

FIG. 7 is a schematic diagram of a relationship between a capacitancedetection value of a capacitive sensor and a touch state according tothe second embodiment of the present disclosure.

FIG. 8 is a schematic diagram of switching from a touch to a no touchaccording to the second embodiment of the present disclosure.

FIG. 9 is a schematic diagram of switching from the no touch to thetouch according to the second embodiment of the present disclosure.

FIG. 10 is a schematic diagram of judging the touch and the no touch bylogic in a conventional state according to the second embodiment of thepresent disclosure.

FIG. 11 is a schematic structural diagram of a chip according to a thirdembodiment of the present disclosure.

DETAILED DESCRIPTION

Embodiments of the present disclosure will be described in detail belowwith reference to the accompanying drawings in order to make theobjectives, technical solutions and advantages of the present disclosureclearer. However, it will be apparent to those skilled in the art that,in the various embodiments of the present disclosure, numerous technicaldetails are set forth in order to provide the reader with a betterunderstanding of the present disclosure. However, the technicalsolutions claimed in the present disclosure may be implemented withoutthese technical details and various changes and modifications based onthe following embodiments. The following embodiments are divided forconvenience of description, and should not constitute any limitation tothe specific implementation of the present disclosure. The variousembodiments may be combined with each other and referred to each otheron the premise of no contradiction.

A first embodiment of the present disclosure relates to a gesturerecognition method of a capacitive touch device. The capacitive touchdevice may be a wireless headset as shown in FIG. 1, and a user'sgesture to the wireless headset may be recognized through the gesturerecognition method. For example, recognized gestures may include: aclick, a double click, a left-and-right slide, an up-and-down slide, along press and the like. The wireless headset in FIG. 1 is provided withthree capacitive sensors, namely a capacitive sensor 11, a capacitivesensor 12 and a capacitive sensor 13. When the user's finger 2 touchesthe above-described capacitive sensors, the wireless headset mayrecognize the user's gesture. For example, if a touch state of thecapacitive sensor 11 at a previous moment of a current moment is a notouch state and a touch state of the capacitive sensor 11 at the currentmoment is a touch state, a click gesture on the wireless headset may berecognized. It should be noted that the number of the capacitive sensorsin FIG. 1 is only three, and the specific implementation is not limitedthereto. Optionally, the capacitive touch device may also be acapacitive touch display screen, and a gesture type of the user to thecapacitive touch display screen may be recognized through the gesturerecognition method. However, this embodiment only provides specificexamples of the above two capacitive touch devices, and the specificimplementation is not limited thereto. The implementation details of thegesture recognition method in this embodiment are described in detailbelow. The following contents are only for convenience of understandingthe implementation details provided, and are not necessary forimplementing the present solution.

A flow chart of the gesture recognition method in this embodiment may beshown in FIG. 2, and specifically includes:

In step 101, a capacitance of a capacitive sensor in the capacitivetouch device is sampled to acquire a capacitance sampling valuecorresponding to a current sampling frame of the capacitive sensor.

In an example, a sampling period may be preset. The capacitance of thecapacitive sensor in the capacitive touch device may be sampledaccording to the preset sampling period to acquire the capacitancesampling value corresponding to the current sampling frame of thecapacitive sensor. The capacitance sampling value corresponding to eachsampling frame may be the capacitance sampling value acquired bysampling at each sampling moment. It can be understood that if thecapacitive touch device includes a plurality of capacitive sensors,capacitances of the plurality of capacitive sensors may be sampledaccording to the sampling period, so as to acquire capacitance samplingvalues of the plurality of capacitive sensors corresponding to thecurrent sampling frame.

Herein, when there is no touch object close to the capacitive sensor,that is, when there is no hand touch and no liquid contact, thecapacitance sampling value may be called a base capacitance value BaseC.When a touch object (such as a finger) is in contact with the capacitivesensor, a sampled capacitance value may be called a capacitance samplingvalue RawC. Herein, the capacitance sampling value RawC may include twoparts: a capacitance value caused by the contact of the touch object andthe base capacitance value. A difference between the capacitancesampling value RawC corresponding to the current sampling frame and thebase capacitance value BaseC of the capacitive sensor may be called acapacitance detection value Touch C, that is, Touch C=RawC−BaseC. Itshould be noted that the capacitance detection value Touch C isRawC−BaseC in this embodiment is only taken as an example. According toactual needs, the capacitance sampling value RawC may also be directlyused as the capacitance detection value Touch C. However, thisembodiment is not specifically limited thereto. When the touch objectincludes a liquid and a finger, that is, when the liquid contacts thecapacitive touch device, a user touches the capacitive sensor in thecapacitive touch device with the finger, then the capacitance detectionvalue Touch C may include an amount of a capacitance change caused bythe liquid contacting the capacitive sensor and an amount of acapacitance change caused by the finger touching the capacitive sensor.Herein, the liquid may be a water drop, a sweat, a beverage and thelike.

In a specific implementation, before sampling the capacitance of thecapacitive sensor in the capacitive touch device, a power-oninitialization may be performed first, for example, an initialization isperformed using preset initialization information. Herein, theinitialization information may include an initialized base capacitorvalue BaseC, an initialized touch state, and the like. In a specificimplementation, the initialized touch state may be a no touch or atouch.

In step 102, a first capacitance value of an interference capacitancecaused by a liquid on the capacitive sensor is determined according tothe capacitance sampling value and reference information correspondingto the current sampling frame.

Herein, when the current sampling frame is a first sampling frame, thereference information is the initialization information. When thecurrent sampling frame is not the first sampling frame, the referenceinformation is characteristic information of a previous sampling frameof the current sampling frame. That is, when the current sampling frameis the first sampling frame, the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensoris determined according to the capacitance sampling value correspondingto the current sampling frame and the initialization information. Whenthe current sampling frame is not the first sampling frame, the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor is determined according to the capacitancesampling value corresponding to the current sampling frame and thecharacteristic information of the previous sampling frame. Since thecharacteristic information of the previous sampling frame may beconsidered when determining the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensorin the case that the current sampling frame is not the first samplingframe, it may be deemed that characteristic information of a historicalsampling frame is taken into consideration for the first capacitancevalue of the interference capacitance. In a specific implementation, thefirst capacitance value of the interference capacitance caused by theliquid on the capacitive sensor may be understood as the amount of thecapacitance change of the capacitive sensor caused by the liquid whenthe liquid contacts the capacitive sensor at a current sampling moment.

In an example, the reference information includes a referenced touchstate and a referenced first capacitance value. The referenceinformation in two cases where the current sampling frame is the firstsampling frame and where the current sampling frame is not the firstsampling frame will be respectively described below.

When the current sampling frame is the first sampling frame, theinitialization information includes an initialized touch state and aninitialized first capacitance value. The referenced touch state is theinitialized touch state, and the referenced first capacitance value isthe initialized first capacitance value. In a specific implementation,the initialized touch state may usually be the no touch, and theinitialized first capacitance value may be set to 0, but this embodimentis not specifically limited thereto.

When the current sampling frame is not the first sampling frame, thecharacteristic information of the previous sampling frame of the currentsampling frame includes: a touch state of the capacitive sensorrepresented by the previous sampling frame of the current sampling frameand the first capacitance value of the interference capacitance causedby the liquid on the capacitive sensor in the previous sampling frame ofthe current sampling frame. The referenced touch state is the touchstate of the capacitive sensor represented by the previous samplingframe, and the referenced first capacitance value is the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor in the previous sampling frame.

In an example, each sampling frame has a touch state of a capacitivesensor represented. Each time when a touch state represented by asampling frame is acquired, the touch state represented by the samplingframe may be recorded, so as to facilitate a subsequent acquisition ofthe touch state of the capacitive sensor represented by the previoussampling frame of the current sampling frame. In a specificimplementation, timing information of the touch states of the touchdevice may be acquired according to the recorded touch states. The touchstates may be divided into two types, namely the touch and the no touch.According to the timing information of the touch states, the touch staterepresented by the previous sampling frame of the current sampling framemay also be determined.

In an example, each sampling frame has a first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensor,that is, it may be deemed that each sampling frame has a correspondingfirst capacitance value of the interference capacitance. After acquiringa first capacitance value of the interference capacitance correspondingto a sampling frame each time, the first capacitance value of theinterference capacitance corresponding to the sampling frame may berecorded, so as to facilitate a subsequent acquisition of the firstcapacitance value of the interference capacitance corresponding to theprevious sampling frame of the current sampling frame, that is, thefirst capacitance value of the interference capacitance caused by theliquid on the capacitive sensor in the previous sampling frame of thecurrent sampling frame.

In an example, an implementation process of the step 102 is shown inFIG. 3, which includes:

In step 301, a second capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor is determined according tothe capacitance sampling value corresponding to the current samplingframe when the referenced touch state is the touch.

That is, when the referenced touch state included in the referenceinformation is the touch, the second capacitance value of theinterference capacitance caused by the liquid on the capacitive sensoris determined according to the capacitance sampling value correspondingto the current sampling frame. In a specific implementation, thereferenced touch state is the touch, which may indicate that theinitialized touch state is the touch, or that the touch state of thecapacitive sensor represented by the previous sampling frame of thecurrent sampling frame is the touch.

Herein, a difference between the first capacitance value of theinterference capacitance and the second capacitance value of theinterference capacitance lies in the different determination methods:the second capacitance value is acquired by performing calculation basedon characteristic information of the current sampling frame. That is,the second capacitance value is not relevant with the characteristicinformation of the historical sampling frame and may be recorded aswater_signal_temp. That is, the second capacitance value is acquiredaccording to the capacitance sampling value corresponding to the currentsampling frame. The first capacitance value is acquired by iterativelyestimating based on the characteristic information of the currentsampling frame and the characteristic information of the historicalsampling frame, that is, the first capacitance value is related to thecharacteristic information of the historical sampling frame and may berecorded as water_signal. Herein, the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensorwhen the current sampling frame is the first sampling frame isdetermined based on the capacitance sampling value corresponding to thecurrent sampling frame and the initialized information. Herein, theinitialized information may include the initialized touch state and theinitialized first capacitance value.

In an example, a difference between the capacitance sampling valuecorresponding to the current sampling frame and the base capacitancevalue of the capacitive sensor may be taken as the capacitance detectionvalue. Herein, the base capacitance value represents a capacitance valueof the capacitive sensor under the condition of no hand touch and noliquid contact. Then whether the capacitance detection value is greaterthan a preset capacitance threshold is determined. The presetcapacitance threshold is larger than a touch threshold of the capacitivesensor. When it is determined that the capacitance detection value isgreater than the preset capacitance threshold, a difference between thecapacitance detection value and the preset capacitance threshold istaken as the second capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor. When it is determinedthat the capacitance detection value is less than or equal to the presetthreshold, an initialized second capacitance value is taken as thesecond capacitance value of the interference capacitance caused by theliquid on the capacitive sensor. Herein, the touch threshold is athreshold of a capacitance value configured to indicate that the touchstate of the capacitive sensor is the touch state when there is noliquid on the capacitive sensor. For example, in a normal state, thatis, when there is no liquid on the capacitive sensor, if the capacitancedetection value Touch C is greater than the touch threshold, it isdetermined that the touch state of the capacitive sensor is the touch.The above touch threshold may be set according to actual needs. Forexample, the touch threshold may be preset by a technician before thecapacitive sensor in the capacitive touch device leaves the factory fordetermining the touch state in the normal state. The normal state may beunderstood as the state in which there is no liquid, that is, thecapacitance detection value Touch C does not include the amount of thecapacitance change caused when the liquid contacts the capacitivesensor. The above preset capacitance threshold may be set to a valuegreater than the touch threshold according to actual needs, for example,the preset threshold may be a product of the touch threshold and apreset gain coefficient, and the gain coefficient is greater than 1.

In a specific implementation, when determining the second capacitancevalue of the interference capacitance caused by the liquid on thecapacitive sensor, that is, the second capacitance valuewater_signal_temp corresponding to the current sampling frame, thewater_signal_temp may be initialized to 0 first. If it is determinedthat the Touch C of the current sampling frame is greater thanK1×Touch_Level (the product of the gain coefficient K1 and the touchthreshold Touch_Level), a value of the Touch C-K1×Touch_Level may betaken as the second capacitance value corresponding to the currentsampling frame. Otherwise, the initialized second capacitance value maybe taken as the second capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor. The initialized secondcapacitance value may be 0. However, the initialized second capacitancevalue in this embodiment only takes 0 as an example, which is notlimited thereto in the specific implementations.

In step 302, the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor is determined according tothe second capacitance value and the referenced first capacitance value.

In a specific implementation, if the current sampling frame is the firstsampling frame, the referenced first capacitance value is theinitialized first capacitance value, for example, it may be 0. If thecurrent sampling frame is not the first sampling frame, the referencedfirst capacitance value is the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensorin the previous sampling frame of the current sampling frame.

In an example, it may be judged whether the second capacitance value isgreater than the referenced first capacitance value. When it isdetermined that the second capacitance value is greater than thereferenced first capacitance value, the second capacitance value istaken as the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor. When it is determinedthat the second capacitance value is less than or equal to thereferenced first capacitance value, the referenced first capacitancevalue is attenuated and a value after attenuating of the referencedfirst capacitance value is taken as the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensor.It may be understood that if no liquid actually contacts the capacitivesensor in the capacitive touch device in actual situations, thedetermined first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor is 0.

Herein, the method of attenuating the referenced first capacitance valuemay be: multiplying the referenced first capacitance value by anattenuation coefficient, and then taking a multiplied product as thefirst capacitance value corresponding to the current sampling frame,where the attenuation coefficient is less than 1. However, theattenuation method in this embodiment only takes the above example as anexample, which is not limited thereto in the specific implementation.For example, when the referenced first capacitance value is not 0, thereferenced first capacitance value may be attenuated by subtracting apreset value from the referenced first capacitance value.

Taking an example that the current sampling frame is not the firstsampling frame, it is assumed that the current sampling frame is a 10thframe and the previous sampling frame of the current sampling frame is a9th frame. A first capacitance value corresponding to the currentsampling frame, i.e., the 10th frame may be determined in such a waythat if a second capacitance value water_signal_temp corresponding tothe 10th frame is larger than a first capacitance value water_signalcorresponding to the 9th frame, then the first capacitance valuecorresponding to the 10th frame is equal to the second capacitance valuecorresponding to the 10th frame. If the second capacitance valuecorresponding to the 10th frame is less than or equal to the firstcapacitance value corresponding to the 9th frame, the first capacitancevalue corresponding to the 10th frame is equal to a product of the firstcapacitance value corresponding to the 9th frame and an attenuationcoefficient K2, where K2 is less than 1.

It may be understood that the above FIG. 3 mainly introduces how todetermine the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor when the referenced touchstate is the touch. The following describes how to determine the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor when the referenced touch state is the no touchstate.

In an example, when the referenced touch state is the no touch state,the first capacitance value of the interference capacitance caused bythe liquid on the capacitive sensor may be determined according to thecapacitance sampling value and the referenced first capacitance valuecorresponding to the current sampling frame. Herein, if the currentsampling frame is the first sampling frame, the referenced firstcapacitance value is the initialized first capacitance value, forexample, it may be 0. If the current sampling frame is not the firstsampling frame, the referenced first capacitance value is the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor in the previous sampling frame of the currentsampling frame.

In an example, according to the capacitance sampling value and thereferenced first capacitance value corresponding to the current samplingframe, the way to determine the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensormay be as follows: first, the difference between the capacitancesampling value corresponding to the current sampling frame and the basecapacitance value of the capacitive sensor may be taken as thecapacitance detection value, where the base capacitance value representsthe capacitance value of the capacitive sensor under the condition of nohand touch and no liquid contact. Then, whether the capacitancedetection value is greater than the referenced first capacitance valueis judged. When it is determined that the capacitance detection value isgreater than the referenced first capacitance value, the referencedfirst capacitance value is taken as the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensor;and when it is determined that the capacitance detection value is lessthan or equal to the referenced first capacitance value, the capacitancedetection value is taken as the first capacitance value corresponding tothe current sampling frame.

Taking the current sampling frame as the 10th frame as an example, thefirst capacitance value corresponding to the 10th frame may bedetermined by judging whether a capacitance detection value Touch C ofthe 10th frame is greater than the first capacitance value water_signalcorresponding to the 9th frame. If the Touch C of the 10th frame isgreater than the water_signal corresponding to the 9th frame, then thewater_signal corresponding to the 10th frame is equal to thewater_signal corresponding to the 9th frame; otherwise, the water_signalcorresponding to the 10th frame is equal to the Touch C of the 10thframe.

Optionally, when the referenced touch state is the no touch state, theway to determine the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor may also be asfollows: first, the difference between the capacitance sampling valuecorresponding to the current sampling frame and the base capacitancevalue of the capacitive sensor is taken as the capacitance detectionvalue, and the second capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor is determined according tothe capacitance detection value. In a specific implementation, thecapacitance detection value may be directly taken as the secondcapacitance value. Then, according to the second capacitance value andthe referenced first capacitance value, the first capacitance value ofthe interference capacitance caused by the liquid on the capacitivesensor is determined. For example, if the second capacitance value isgreater than the referenced first capacitance value, the referencedfirst capacitance value is taken as the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensor;and if the second capacitance value is less than or equal to thereferenced first capacitance value, the second capacitance value istaken as the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor.

In step 103, a touch state of the capacitive sensor represented by thecurrent sampling frame is determined according to the capacitancesampling value and the first capacitance value of the interferencecapacitance corresponding to the current sampling frame.

In an example, the difference between the capacitance sampling valuecorresponding to the current sampling frame and the base capacitancevalue of the capacitive sensor may be taken as the capacitance detectionvalue first. A hand capacitance value is determined according to adifference between the capacitance detection value and the firstcapacitance value of the interference capacitance; where the handcapacitance value is configured to represent a capacitance change valuecaused by a hand on the capacitive sensor. Then, the touch state of thecapacitive sensor represented by the current sampling frame isdetermined according to the hand capacitance value.

In an example, the hand capacitance value may be compared with the touchthreshold of the capacitive sensor in the capacitive touch device, andthe touch state of the capacitive sensor represented by the currentsampling frame may be determined according to the comparison result. Forexample, if the hand capacitance value is greater than the touchthreshold, it may be determined that the touch state of the capacitivesensor represented by the current sampling frame is the touch;otherwise, it may be determined that the touch state of the capacitivesensor represented by the current sampling frame is the no touch state.

In step 104, a gesture of a user on the capacitive touch device isrecognized according to timing information of the touch state of thecapacitive sensor represented by the current sampling frame and ahistorical touch state of the capacitive sensor.

That is to say, the gesture type is comprehensively determined bycombining touch states of a current time point and a historical timepoint, that is, by combining the touch states of different time points.It may be understood that if the capacitive touch device includes aplurality of capacitive sensors, each capacitive sensor may have timinginformation of a touch state, and the timing information is used torepresent the touch state of the capacitive sensor at different samplingtime points. In a specific implementation, the timing information of thehistorical touch state may be expressed as a timing diagram of the touchstate drawn according to the recorded touch state. Then, the timinginformation of the touch state of the capacitive sensor in thecapacitive touch device may be combined to recognize the gesture type.Herein, the recognized gesture type may be any one of the following: aclick, a double click, a triple click, a slide, a long press and thelike. For example, in FIG. 1, the capacitive sensors 11, 12, and 13 aredetected to have the touch in time sequence, which may be recognized asthe user's gesture of sliding up and down.

In an example, referring to FIG. 4, a touch state between a time pointT0 and a time point T1 is the touch. If an interval duration between theT0 and the T1 is relatively short, it may be determined that the gesturetype is the click, and if the interval duration between the T0 and theT1 is relatively long, it may be determined that the gesture type is thelong press. Herein, a length of the interval duration may be determinedby pre-setting a duration threshold. For example, if the intervalduration is greater than the duration threshold, it may be determinedthat the interval duration is relatively long; and if the intervalduration is less than the duration threshold, it may be determined thatthe interval duration is relatively short. Referring to FIG. 4, it maybe seen that the touch threshold is larger than the base capacitancevalue.

In the specific implementation, assuming that there is a touch statebetween T0 and T1, a no touch between T1 and T2, a touch between T2 andT3, and a no touch after T3, and interval durations between T0 to T1, T1to T2 and T2 to T3 are relatively short, it may be recognized that thegesture type is the double click. Further, the gesture of the slide maybe determined according to the timing information of the touch states ofthe plurality of capacitive sensors. For example, if the touch states ofthe three capacitive sensors are determined to be the touch in timesequence, the gesture type may be determined to be the slide, that is,the user's finger slide over the three capacitive sensors in turn.

It should be noted that the above examples in this embodiment are allexamples for convenience of understanding, and do not limit thetechnical solution of the present disclosure.

According to this embodiment, the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensoris determined by combining the capacitance sampling value and thereference information corresponding to the current sampling frame, thatis, it is considered that the liquid contacting the capacitive sensor inthe capacitive touch device may cause a capacitance change. The touchstate of the capacitive sensor represented by the current sampling frameis determined according to the capacitance sampling value and the firstcapacitance value of the interference capacitance corresponding to thecurrent sampling frame. That is, when determining the touch state of thecapacitive sensor represented by the current sampling frame, it isconsidered that the liquid contacting the capacitive sensor in thecapacitive touch device may cause the capacitance change at the sametime, which is beneficial to eliminating the capacitance interferencewhich may be caused when the liquid contacts the capacitive sensor inthe capacitive touch device when determining the touch state, thusimproving the accuracy of the determined touch state. Since the accuracyof the determined touch state is improved, it is beneficial to improvingthe accuracy of the recognized gesture type when the gesture type isfurther recognized based on the determined touch state. Further, thecapacitive gesture recognition solution adopted in the embodiment of thepresent disclosure is beneficial to recognizing various gestures, andthe capacitive gesture recognition solution merely needs to attach thecapacitive sensor on an inner side of the capacitive touch device interms of hardware, so its comprehensive cost is relatively low. Further,for the existing capacitive touch device, the gesture recognition methodin this embodiment may be achieved just by upgrading a firmware throughan over-the-air technology (OTA) without adding additional hardware,which is conducive to improving compatibility while avoiding increasingcost.

A second embodiment of the present disclosure relates to a gesturerecognition method of a capacitive touch device. The second embodimentis roughly the same as the first embodiment, with the main differencebeing that the way to determine a touch state is different. In the firstembodiment, the capacitive sensor in the capacitive touch device has athreshold, that is, the touch threshold, and the touch state of thecapacitive sensor represented by the current sampling frame isdetermined according to a comparison relationship between the touchthreshold and the hand capacitance value. In the second embodiment, thecapacitive sensor in the capacitive touch device has two thresholds,namely a touch threshold and a hand-raising threshold, and the touchstate is determined by combining the referenced touch state and the twothresholds. Herein, the touch threshold is greater than the hand-raisingthreshold, and both the touch threshold and the hand-raising thresholdmay be preset by a technician before the capacitive sensor leaves thefactory. The touch threshold is a threshold of a capacitance valueconfigured to indicate that the touch state of the capacitive sensor isthe touch state when there is no liquid on the capacitive sensor, andthe hand-raising threshold is a threshold of a capacitance valueconfigured to indicate that the touch state of the capacitive sensor isthe no touch state when there is no liquid on the capacitive sensor.That is to say, in the normal state, i.e., when there is no liquid onthe capacitive sensor, if the Touch C is greater than the touchthreshold, it is determined that the touch state is the touch; and ifthe Touch C is less than the hand-raising threshold, it may bedetermined that the touch state is the no touch state. In a specificimplementation, the hand-raising threshold of the capacitive sensor isgreater than the base capacitance value of the capacitive sensor.

First, how to determine the touch state of the capacitive sensorrepresented by the current sampling frame when the referenced touchstate is the touch state is described below. FIG. 5 may be regarded assub-steps of the step 103 in an example, including:

In step 501, it is judged that whether the capacitance detection valueis greater than a sum of the first capacitance value of the interferencecapacitance and a hand-raising threshold of the capacitive sensor; ifso, step 502 is executed, otherwise step 503 is executed.

Herein, the Touch C represents the capacitance detection value, which isthe difference between the capacitance sampling value corresponding tothe current sampling frame and the base capacitance value of thecapacitive sensor. If Leava_Level represents the hand-raising threshold,and water_signal represents the first capacitance value of theinterference capacitance, it may be judged whether the condition ofTouch C>Leava_Level+water_signal is true. If it is true, go to step 502,otherwise go to step 503.

In step 502, the touch state of the capacitive sensor represented by thecurrent sampling frame is determined to be the touch.

That is to say, when the condition of Touch C>Leava_Level+water_signalis true, it is determined that the touch state of the capacitive sensorrepresented by the current sampling frame is the touch.

In step 503, the touch state of the capacitive sensor represented by thecurrent sampling frame is determined to be the no touch.

That is to say, when the condition of Touch C>Leava_Level+water_signalis not true, it is determined that the touch state of the capacitivesensor represented by the current sampling frame is the no touch state.That is, the touch state of the capacitive sensor switches from thereferenced touch state, that is, the touch to the no touch starting fromthe current sampling frame.

Then, how to determine the touch state of the capacitive sensorrepresented by the current sampling frame when the referenced touchstate is the no touch state is described below. FIG. 6 may be regardedas sub-steps of the step 103 in another example, including:

In step 601, it is judged that whether the capacitance detection valueis greater than a sum of the first capacitance value of the interferencecapacitance and a touch threshold of the capacitive sensor; if so, step602 is executed, otherwise step 603 is executed.

Herein, the Touch C represents the capacitance detection value, theTouch_Level represents the touch threshold, and the water_signalrepresents the first capacitance value corresponding to the currentsampling frame, then it may be judged whether the condition of TouchC>Touch_Level+water_signal is true. If it is true, go to step 602,otherwise go to step 603.

In step 602, the touch state of the capacitive sensor represented by thecurrent sampling frame is determined to be the touch.

That is to say, when the condition of Touch C>Touch_Level+water_signalis true, it is determined that the touch state of the capacitive sensorrepresented by the current sampling frame is the touch. That is, thetouch state of the capacitive sensor switches from the referenced touchstate, that is, the no touch to the touch starting from the currentsampling frame.

In step 603, the touch state of the capacitive sensor represented by thecurrent sampling frame is determined to be the no touch.

That is to say, when the condition of Touch C>Touch_Level+water_signalis not true, it is determined that the touch state of the capacitivesensor represented by the current sampling frame is the no touch state.

In an example, the determined first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensoris 0, that is, there is no liquid interference, which belongs to thenormal state. The capacitance detection value Touch C corresponding tothe current sampling frame may be regarded as the hand capacitancevalue. FIG. 7 shows a schematic diagram of the relationship betweentouch state and the capacitance detection value. The Touch C is lessthan the hand-raising threshold before the time point T0, then it may bedetermined that the touch state before the time point T0 is the no touchstate. The touch C is greater than the touch threshold between the timepoint T0 and the time point T1, then it may be determined that the touchstate between the time point T0 and the time point T1 is the touch. Thetouch C is less than the hand-raising threshold after the time point T1,then it may be determined that the touch state after the time point T1is the no touch state. That is, the touch is entered from the time pointT0 until the time point T1 when the touch state is exited and the notouch is entered. Referring to FIG. 7, it may be seen that the touchthreshold is greater than the hand-raising threshold, and thehand-raising threshold is greater than the base capacitance value.

In another example, the determined first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensoris greater than 0, that is, there is a liquid interference. The touch Cincludes the first capacitance value of the interference capacitance andthe hand capacitance value. FIG. 8 shows a schematic diagram ofswitching from the touch to the no touch, in a case that the referencedtouch state is the touch. From the time point T0 to a time point T3, acondition of Touch C>Leava_Level (the hand-raisingthreshold)+water_signal (the first capacitance value of the interferencecapacitance) is satisfied, then it may be determined that the touchstate between the time point T0 and the time point T3 is the touch.After the time point T3, since the condition of the TouchC>Leava_Level+water_signal is not satisfied, it may be determined thatthe touch state is switched to the no touch from the time point T3. FIG.9 shows a schematic diagram of switching from the no touch to the touch,in a case that the referenced touch state is the no touch state. A touchstate between the time point T3 and a time point T4 is the no touchstate, and a condition of Touch C>Touch_Level (touchthreshold)+water_signal is satisfied from the time point T4, then it maybe determined that the touch state is switched to the no touch from thetime point T4.

It may be understood that if the touch and the no touch are determinedby the logic of the normal state, the liquid interference may lead to anerror in a state switching logic. As shown in FIG. 10, when the hand israised at the moment of T1, the touch should be exited and switched tothe no touch, which is delayed until the moment of T2 to exit. The stateswitching error may directly cause a gesture recognition error. Forexample, a normal click gesture may be mistaken for a long press becauseof the touch for a long time. For another example, when there is no handpressing but water or sweat drops on a surface of a capacitive sensorhousing, a click gesture is triggered by mistake.

The capacitive sensor in the capacitive touch device in this embodimenthas two thresholds, namely the touch threshold and the hand-raisingthreshold. By setting two different thresholds, that is, the touchthreshold and the hand-raising threshold, it is beneficial to preventthe touch state from frequently switching between the touch and the notouch and an occurrence of state jitter, which is beneficial to improvethe accuracy of determining the touch state, thus further improving theaccuracy of gesture recognition.

The steps set in the above-described methods only aim to make thedescription clearer. In implementation, the steps may be combined intoone or one step may be divided into multiple steps, which all fall intothe protection scope of the present disclosure as long as the samelogical relationship is included. Such a trivial amendment or designadded to an algorithm or procedure as not changing the algorithm or acentral design of the procedure falls into the protection scope of thedisclosure.

A third embodiment of the present disclosure relates to a chip, as shownin FIG. 11, which includes at least one processor 1101; and a memory1102 communicatively connected to the at least one processor 1101; wherethe memory 1102 stores an instruction executable by the at least oneprocessor 1101, and the instruction is executed by the at least oneprocessor 1101, so that the at least one processor 1101 may execute thegesture recognition method of the capacitive touch device in the firstor second embodiment.

Herein, the memory 1102 and the processor 1101 are connected by bus. Thebus may include any number of interconnected buses and bridges, and thebus connects one or more processors 1101 and various circuits of thememory 1102 together. The bus may also connect various other circuitssuch as a peripheral device, a voltage regulator, a power managementcircuit and the like, which is common knowledge in the art, andtherefore, will not be further described herein. A bus interfaceprovides an interface between the bus and a transceiver. The transceivermay be one element or multiple elements, such as multiple receivers andtransmitters, providing a unit for communicating with various otherdevices on a transmission medium. Data processed by the processor 1101is transmitted on a wireless medium through an antenna. Further, theantenna also receives the data and transmits the data to the processor1101.

The processor 1101 is responsible for bus management and generalprocessing, and may further provide various functions, including atiming, a peripheral interface, a voltage regulation, a power managementand other control functions, while the memory 1102 may be used to storedata used by the processor 1101 when performing operations.

A fourth embodiment of the present disclosure relates to a capacitivetouch device, which includes the chip in the third embodiment.

A fifth embodiment of the present disclosure relates to acomputer-readable storage medium storing a computer program. Theabove-described method embodiments are implemented when the computerprogram is executed by the processor.

That is, those skilled in the art may understand that all or some stepsthat realize the above-described embodiments may be performed byinstructing related hardware through a program which may be stored in acomputer-readable storage medium and which includes several instructionsto enable a device (which may be a single-chip microcomputer, a chip, orthe like) or a processor to perform all or part of the steps of themethod described in each embodiment of the present disclosure. Theaforementioned storage media include: a U disk, a mobile hard disk, aread-only memory (ROM), a random access memory (RAM), a magnetic disk oran optical disk and other medium that may store program codes.

Those skilled in the art should appreciate that the aforementionedembodiments are specific embodiments for implementing the presentdisclosure. In practice, however, various changes may be made in theforms and details of the specific embodiments without departing from thespirit and scope of the present disclosure.

What is claimed is:
 1. A gesture recognition method of a capacitivetouch device, comprising: sampling a capacitance of a capacitive sensorin the capacitive touch device to acquire a capacitance sampling valuecorresponding to a current sampling frame of the capacitive sensor;determining a first capacitance value of an interference capacitancecaused by a liquid on the capacitive sensor according to the capacitancesampling value and reference information corresponding to the currentsampling frame; wherein the reference information is initializationinformation when the current sampling frame is a first sampling frame,and the reference information is characteristic information of aprevious sampling frame of the current sampling frame when the currentsampling frame is not the first sampling frame; determining a touchstate of the capacitive sensor represented by the current sampling frameaccording to the capacitance sampling value corresponding to the currentsampling frame and the first capacitance value of the interferencecapacitance; and recognizing a gesture of a user on the capacitive touchdevice according to the touch state of the capacitive sensor representedby the current sampling frame and timing information of a historicaltouch state of the capacitive sensor.
 2. The gesture recognition methodof the capacitive touch device according to claim 1, wherein thereference information comprises a referenced touch state and areferenced first capacitance value; when the current sampling frame isthe first sampling frame, the initialization information comprises aninitialized touch state and an initialized first capacitance value;wherein the referenced touch state is the initialized touch state, andthe referenced first capacitance value is the initialized firstcapacitance value; and when the current sampling frame is not the firstsampling frame, the characteristic information of the previous samplingframe of the current sampling frame comprises a touch state of thecapacitive sensor represented by the previous sampling frame of thecurrent sampling frame and the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensorin the previous sampling frame of the current sampling frame; whereinthe referenced touch state is the touch state of the capacitive sensorrepresented by the previous sampling frame, and the referenced firstcapacitance value is the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor in theprevious sampling frame.
 3. The gesture recognition method of thecapacitive touch device according to claim 2, wherein determining thefirst capacitance value of the interference capacitance caused by theliquid on the capacitive sensor according to the capacitance samplingvalue and the reference information corresponding to the currentsampling frame comprises: when the referenced touch state is a touchstate, determining a second capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor according tothe capacitance sampling value corresponding to the current samplingframe; and determining the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor according tothe second capacitance value and the referenced first capacitance value.4. The gesture recognition method of the capacitive touch deviceaccording to claim 3, wherein determining the second capacitance valueof the interference capacitance caused by the liquid on the capacitivesensor according to the capacitance sampling value corresponding to thecurrent sampling frame comprises: taking a difference between thecapacitance sampling value corresponding to the current sampling frameand a base capacitance value of the capacitive sensor as a capacitancedetection value; wherein the base capacitance value represents acapacitance value of the capacitive sensor acquired by sampling underthe condition of no user touch and no liquid contact; judging whetherthe capacitance detection value is greater than a preset capacitancethreshold; wherein the preset capacitance threshold is greater than atouch threshold of the capacitive sensor; the touch threshold is athreshold of a capacitance value configured to indicate that the touchstate of the capacitive sensor is a touch state when there is no liquidon the capacitive sensor; taking a difference between the capacitancedetection value and the preset capacitance threshold as the secondcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor when it is determined that the capacitancedetection value is greater than the preset capacitance threshold; andtaking an initialized second capacitance value as the second capacitancevalue of the interference capacitance caused by the liquid on thecapacitive sensor when it is determined that the capacitance detectionvalue is less than or equal to the preset capacitance threshold.
 5. Thegesture recognition method of the capacitive touch device according toclaim 3, wherein determining the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensoraccording to the second capacitance value and the referenced firstcapacitance value comprises: judging whether the second capacitancevalue is greater than the referenced first capacitance value; taking thesecond capacitance value as the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensorwhen it is determined that the second capacitance value is greater thanthe referenced first capacitance value; and attenuating the referencedfirst capacitance value and taking the referenced first capacitancevalue after attenuating as the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensorwhen it is determined that the second capacitance value is less than orequal to the referenced first capacitance value.
 6. The gesturerecognition method of the capacitive touch device according to claim 3,wherein determining the touch state of the capacitive sensor representedby the current sampling frame according to the capacitance samplingvalue and the first capacitance value of the interference capacitancecorresponding to the current sampling frame comprises: taking adifference between the capacitance sampling value corresponding to thecurrent sampling frame and the base capacitance value of the capacitivesensor as the capacitance detection value; wherein the base capacitancevalue represents the capacitance value of the capacitive sensor acquiredby sampling under the condition of no hand touch and no liquid contact;judging whether the capacitance detection value is greater than a sum ofthe first capacitance value of the interference capacitance and ahand-raising threshold of the capacitive sensor; wherein, thehand-raising threshold is a threshold of a capacitance value configuredto indicate that the touch state of the capacitive sensor is a no touchstate when there is no liquid on the capacitive sensor; determining thatthe touch state of the capacitive sensor represented by the currentsampling frame is the touch state when it is determined that thecapacitance detection value is greater than the sum of the firstcapacitance value of the interference capacitance and the hand-raisingthreshold of the capacitive sensor; and determining that the touch stateof the capacitive sensor represented by the current sampling frame isthe no touch state when it is determined that the capacitance detectionvalue is less than or equal to the sum of the first capacitance value ofthe interference capacitance and the hand-raising threshold of thecapacitive sensor.
 7. The gesture recognition method of the capacitivetouch device according to claim 2, wherein determining the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor according to the capacitance sampling value andthe reference information corresponding to the current sampling framecomprises: determining the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor according tothe capacitance sampling value and the referenced first capacitancevalue corresponding to the current sampling frame, when the referencedtouch state is a no touch state.
 8. The gesture recognition method ofthe capacitive touch device according to claim 7, wherein determiningthe first capacitance value of the interference capacitance caused bythe liquid on the capacitive sensor according to the capacitancesampling value and the referenced first capacitance value correspondingto the current sampling frame comprises: taking a difference between thecapacitance sampling value corresponding to the current sampling frameand the base capacitance value of the capacitive sensor as thecapacitance detection value; wherein the base capacitance valuerepresents the capacitance value of the capacitive sensor acquired bysampling under the condition of no hand touch and no liquid contact;judging whether the capacitance detection value is greater than thereferenced first capacitance value; taking the referenced firstcapacitance value as the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor when it isdetermined that the capacitance detection value is greater than thereferenced first capacitance value; and taking the capacitance detectionvalue as the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor when it is determined thatthe capacitance detection value is less than or equal to the referencedfirst capacitance value.
 9. The gesture recognition method of thecapacitive touch device according to claim 8, wherein determining thetouch state of the capacitive sensor represented by the current samplingframe according to the capacitance sampling value and the firstcapacitance value of the interference capacitance corresponding to thecurrent sampling frame comprises: judging whether the capacitancedetection value is greater than a sum of the first capacitance value ofthe interference capacitance and a touch threshold of the capacitivesensor; wherein, the touch threshold is a threshold of a capacitancevalue configured to indicate that the touch state of the capacitivesensor is a touch state when there is no liquid on the capacitivesensor; determining that the touch state of the capacitive sensorrepresented by the current sampling frame is a touch state when it isdetermined that the capacitance detection value is greater than the sumof the first capacitance value of the interference capacitance and thetouch threshold of the capacitive sensor; and determining that the touchstate of the capacitive sensor represented by the current sampling frameis a no touch state when it is determined that the capacitance detectionvalue is less than or equal to the sum of the first capacitance value ofthe interference capacitance and the touch threshold of the capacitivesensor.
 10. The gesture recognition method of the capacitive touchdevice according to claim 1, wherein determining the touch state of thecapacitive sensor represented by the current sampling frame according tothe capacitance sampling value and the first capacitance value of theinterference capacitance corresponding to the current sampling framecomprises: taking a difference between the capacitance sampling valuecorresponding to the current sampling frame and a base capacitance valueof the capacitive sensor as a capacitance detection value; wherein thebase capacitance value represents a capacitance value of the capacitivesensor acquired by sampling under the condition of no hand touch and noliquid contact; determining a hand capacitance value according to adifference between the capacitance detection value and the firstcapacitance value of the interference capacitance; wherein the handcapacitance value is configured to represent a capacitance change valuecaused by a hand on the capacitive sensor; and determining the touchstate of the capacitive sensor represented by the current sampling frameaccording to the hand capacitance value.
 11. A non-transitorycomputer-readable storage medium storing a computer program, wherein thecomputer program, when executed by a processor, implements the gesturerecognition method of the capacitive touch device according to claim 1.12. A chip, comprising: at least one processor; and a memorycommunicatively connected to the at least one processor; wherein, thememory is configured to store an instruction executable by the at leastone processor, and the instruction is executed by the at least oneprocessor, so that the at least one processor executes a gesturerecognition method, wherein the gesture recognition method comprises:sampling a capacitance of a capacitive sensor in the capacitive touchdevice to acquire a capacitance sampling value corresponding to acurrent sampling frame of the capacitive sensor; determining a firstcapacitance value of an interference capacitance caused by a liquid onthe capacitive sensor according to the capacitance sampling value andreference information corresponding to the current sampling frame;wherein the reference information is initialization information when thecurrent sampling frame is a first sampling frame, and the referenceinformation is characteristic information of a previous sampling frameof the current sampling frame when the current sampling frame is not thefirst sampling frame; determining a touch state of the capacitive sensorrepresented by the current sampling frame according to the capacitancesampling value corresponding to the current sampling frame and the firstcapacitance value of the interference capacitance; and recognizing agesture of a user on the capacitive touch device according to the touchstate of the capacitive sensor represented by the current sampling frameand timing information of a historical touch state of the capacitivesensor.
 13. The chip according to claim 12, wherein the referenceinformation comprises a referenced touch state and a referenced firstcapacitance value; when the current sampling frame is the first samplingframe, the initialization information comprises an initialized touchstate and an initialized first capacitance value; wherein the referencedtouch state is the initialized touch state, and the referenced firstcapacitance value is the initialized first capacitance value; and whenthe current sampling frame is not the first sampling frame, thecharacteristic information of the previous sampling frame of the currentsampling frame comprises a touch state of the capacitive sensorrepresented by the previous sampling frame of the current sampling frameand the first capacitance value of the interference capacitance causedby the liquid on the capacitive sensor in the previous sampling frame ofthe current sampling frame; wherein the referenced touch state is thetouch state of the capacitive sensor represented by the previoussampling frame, and the referenced first capacitance value is the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor in the previous sampling frame.
 14. The chipaccording to claim 13, wherein determining the first capacitance valueof the interference capacitance caused by the liquid on the capacitivesensor according to the capacitance sampling value and the referenceinformation corresponding to the current sampling frame comprises: whenthe referenced touch state is a touch state, determining a secondcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor according to the capacitance sampling valuecorresponding to the current sampling frame; and determining the firstcapacitance value of the interference capacitance caused by the liquidon the capacitive sensor according to the second capacitance value andthe referenced first capacitance value.
 15. The chip according to claim14, wherein determining the second capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor according tothe capacitance sampling value corresponding to the current samplingframe comprises: taking a difference between the capacitance samplingvalue corresponding to the current sampling frame and a base capacitancevalue of the capacitive sensor as a capacitance detection value; whereinthe base capacitance value represents a capacitance value of thecapacitive sensor acquired by sampling under the condition of no usertouch and no liquid contact; judging whether the capacitance detectionvalue is greater than a preset capacitance threshold; wherein the presetcapacitance threshold is greater than a touch threshold of thecapacitive sensor; the touch threshold is a threshold of a capacitancevalue configured to indicate that the touch state of the capacitivesensor is a touch state when there is no liquid on the capacitivesensor; taking a difference between the capacitance detection value andthe preset capacitance threshold as the second capacitance value of theinterference capacitance caused by the liquid on the capacitive sensorwhen it is determined that the capacitance detection value is greaterthan the preset capacitance threshold; and taking an initialized secondcapacitance value as the second capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor when it isdetermined that the capacitance detection value is less than or equal tothe preset capacitance threshold.
 16. The chip according to claim 14,wherein determining the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor according tothe second capacitance value and the referenced first capacitance valuecomprises: judging whether the second capacitance value is greater thanthe referenced first capacitance value; taking the second capacitancevalue as the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor when it is determined thatthe second capacitance value is greater than the referenced firstcapacitance value; and attenuating the referenced first capacitancevalue and taking the referenced first capacitance value afterattenuating as the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor when it isdetermined that the second capacitance value is less than or equal tothe referenced first capacitance value.
 17. The chip according to claim14, wherein determining the touch state of the capacitive sensorrepresented by the current sampling frame according to the capacitancesampling value and the first capacitance value of the interferencecapacitance corresponding to the current sampling frame comprises:taking a difference between the capacitance sampling value correspondingto the current sampling frame and the base capacitance value of thecapacitive sensor as the capacitance detection value; wherein the basecapacitance value represents the capacitance value of the capacitivesensor acquired by sampling under the condition of no hand touch and noliquid contact; judging whether the capacitance detection value isgreater than a sum of the first capacitance value of the interferencecapacitance and a hand-raising threshold of the capacitive sensor;wherein, the hand-raising threshold is a threshold of a capacitancevalue configured to indicate that the touch state of the capacitivesensor is a no touch state when there is no liquid on the capacitivesensor; determining that the touch state of the capacitive sensorrepresented by the current sampling frame is the touch state when it isdetermined that the capacitance detection value is greater than the sumof the first capacitance value of the interference capacitance and thehand-raising threshold of the capacitive sensor; and determining thatthe touch state of the capacitive sensor represented by the currentsampling frame is the no touch state when it is determined that thecapacitance detection value is less than or equal to the sum of thefirst capacitance value of the interference capacitance and thehand-raising threshold of the capacitive sensor.
 18. The chip accordingto claim 13, wherein determining the first capacitance value of theinterference capacitance caused by the liquid on the capacitive sensoraccording to the capacitance sampling value and the referenceinformation corresponding to the current sampling frame comprises:determining the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor according to thecapacitance sampling value and the referenced first capacitance valuecorresponding to the current sampling frame, when the referenced touchstate is a no touch state.
 19. The chip according to claim 18, whereindetermining the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor according to thecapacitance sampling value and the referenced first capacitance valuecorresponding to the current sampling frame comprises: taking adifference between the capacitance sampling value corresponding to thecurrent sampling frame and the base capacitance value of the capacitivesensor as the capacitance detection value; wherein the base capacitancevalue represents the capacitance value of the capacitive sensor acquiredby sampling under the condition of no hand touch and no liquid contact;judging whether the capacitance detection value is greater than thereferenced first capacitance value; taking the referenced firstcapacitance value as the first capacitance value of the interferencecapacitance caused by the liquid on the capacitive sensor when it isdetermined that the capacitance detection value is greater than thereferenced first capacitance value; and taking the capacitance detectionvalue as the first capacitance value of the interference capacitancecaused by the liquid on the capacitive sensor when it is determined thatthe capacitance detection value is less than or equal to the referencedfirst capacitance value.
 20. A capacitive touch device, comprising achip, wherein the chip, comprising: at least one processor; and a memorycommunicatively connected to the at least one processor; wherein, thememory is configured to store an instruction executable by the at leastone processor, and the instruction is executed by the at least oneprocessor, so that the at least one processor executes a gesturerecognition method, wherein the gesture recognition method comprises:sampling a capacitance of a capacitive sensor in the capacitive touchdevice to acquire a capacitance sampling value corresponding to acurrent sampling frame of the capacitive sensor; determining a firstcapacitance value of an interference capacitance caused by a liquid onthe capacitive sensor according to the capacitance sampling value andreference information corresponding to the current sampling frame;wherein the reference information is initialization information when thecurrent sampling frame is a first sampling frame, and the referenceinformation is characteristic information of a previous sampling frameof the current sampling frame when the current sampling frame is not thefirst sampling frame; determining a touch state of the capacitive sensorrepresented by the current sampling frame according to the capacitancesampling value corresponding to the current sampling frame and the firstcapacitance value of the interference capacitance; and recognizing agesture of a user on the capacitive touch device according to the touchstate of the capacitive sensor represented by the current sampling frameand timing information of a historical touch state of the capacitivesensor.